<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="keywords" content="Hexo Theme Redefine">
    
    <meta name="author" content="Saturday_to_Monday">
    <!-- preconnect -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    
    
    <!--- Seo Part-->
    
    <link rel="canonical" href="http://example.com/2023/06/08/基于gitee与hexo搭建博客/"/>
    <meta name="robots" content="index,follow">
    <meta name="googlebot" content="index,follow">
    <meta name="revisit-after" content="1 days">
    
        <meta name="description" content="First Blog:Welcom to Weekend’s Personal Blog!记录了搭建本博客过程以及遇到的问题 预备工作： 安装git 安装node.js 安装hexo 创建Gitee仓库&#x2F;&#x2F;保证仓库名和用户名一致 或者创建Gihub仓库（response）&#x2F;&#x2F;仓库名必须为 username.github.io   查看本机ssh公钥，生成公钥">
<meta property="og:type" content="article">
<meta property="og:title" content="基于Gitee&#x2F;Github与hexo搭建博客">
<meta property="og:url" content="http://example.com/2023/06/08/%E5%9F%BA%E4%BA%8EGitee%E4%B8%8Ehexo%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="First Blog:Welcom to Weekend’s Personal Blog!记录了搭建本博客过程以及遇到的问题 预备工作： 安装git 安装node.js 安装hexo 创建Gitee仓库&#x2F;&#x2F;保证仓库名和用户名一致 或者创建Gihub仓库（response）&#x2F;&#x2F;仓库名必须为 username.github.io   查看本机ssh公钥，生成公钥">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="c:\Users\%E6%9C%A8%E5%A4%B4%E5%90%8C%E5%AD%A6\AppData\Roaming\Typora\typora-user-images\image-20230608201721992.png">
<meta property="og:image" content="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/a3f57928b97b44a5bc4f0cf2dc144a08~tplv-k3u1fbpfcp-watermark.image">
<meta property="article:published_time" content="2023-06-08T12:27:28.150Z">
<meta property="article:modified_time" content="2023-06-08T12:18:06.739Z">
<meta property="article:author" content="John Doe">
<meta property="article:tag" content="hexo">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="c:\Users\%E6%9C%A8%E5%A4%B4%E5%90%8C%E5%AD%A6\AppData\Roaming\Typora\typora-user-images\image-20230608201721992.png">
    
    
    <!--- Icon Part-->
    <link rel="icon" type="image/png" href="https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/b87a931b162a415d9b8127dded86ae2e~tplv-k3u1fbpfcp-watermark.image?" sizes="192x192">
    <link rel="apple-touch-icon" sizes="180x180" href="https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/b87a931b162a415d9b8127dded86ae2e~tplv-k3u1fbpfcp-watermark.image?">
    <meta name="theme-color" content="#A31F34">
    <link rel="shortcut icon" href="https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/b87a931b162a415d9b8127dded86ae2e~tplv-k3u1fbpfcp-watermark.image?">
    <!--- Page Info-->
    
    <title>
        
            基于Gitee/Github与hexo搭建博客 -
        
        Weekend&#39;s Blog
    </title>
    
<link rel="stylesheet" href="/css/style.css">

    
<link rel="stylesheet" href="/assets/fonts.css">

    <!--- Font Part-->
    
    
    
    

    <!--- Inject Part-->
    
    <script id="hexo-configurations">
    let Global = window.Global || {};
    Global.hexo_config = {"hostname":"example.com","root":"/","language":"zh-CN"};
    Global.theme_config = {"articles":{"style":{"font_size":"16px","line_height":1.5,"image_border_radius":"14px","image_alignment":"center","image_caption":false,"link_icon":true},"word_count":{"enable":true,"count":true,"min2read":true},"author_label":{"enable":true,"auto":false,"list":[]},"code_block":{"copy":true,"style":"mac","font":{"enable":false,"family":null,"url":null}},"toc":{"enable":true,"max_depth":3,"number":false,"expand":true,"init_open":true},"copyright":true,"lazyload":true,"recommendation":{"enable":false,"title":"推荐阅读","limit":3,"placeholder":"/images/wallhaven-wqery6-light.webp","skip_dirs":[]}},"colors":{"primary":"#A31F34","secondary":null},"global":{"fonts":{"chinese":{"enable":false,"family":null,"url":null},"english":{"enable":false,"family":null,"url":null}},"content_max_width":"1000px","sidebar_width":"210px","hover":{"shadow":false,"scale":true},"scroll_progress":{"bar":false,"percentage":true},"busuanzi_counter":{"enable":true,"site_pv":true,"site_uv":true,"post_pv":true},"pjax":true,"open_graph":true,"google_analytics":{"enable":false,"id":null}},"home_banner":{"enable":true,"style":"static","image":{"light":"/images/wallhaven-wqery6-light.webp","dark":"/images/wallhaven-wqery6-dark.webp"},"title":"Weekend's Blog","subtitle":{"text":["welcome to Weekend's blog ","分享日常生活,记录学习日志"],"hitokoto":{"enable":false,"api":"https://v1.hitokoto.cn"},"typing_speed":100,"backing_speed":80,"starting_delay":500,"backing_delay":1500,"loop":true,"smart_backspace":true},"text_color":{"light":"#fff","dark":"#d1d1b6"},"text_style":{"title_size":"2.8rem","subtitle_size":"1.5rem","line_height":1.2},"custom_font":{"enable":false,"family":null,"url":null},"social_links":{"enable":true,"links":{"github":null,"instagram":null,"zhihu":null,"twitter":null,"email":null}}},"plugins":{"feed":{"enable":false},"aplayer":{"enable":false,"type":"fixed","audios":[{"name":null,"artist":null,"url":null,"cover":null}]},"mermaid":{"enable":false,"version":"9.3.0"}},"version":"2.1.5","navbar":{"auto_hide":false,"color":{"left":"#f78736","right":"#367df7","transparency":35},"links":{"Home":{"path":"/","icon":"fa-regular fa-house"},"Archives":{"path":"/archives","icon":"fa-regular fa-archive"},"Status":{"path":"https://status.evanluo.top/","icon":"fa-regular fa-chart-bar"},"About":{"icon":"fa-regular fa-user","submenus":{"Me":"/about","Github":"https://github.com/EvanNotFound/hexo-theme-redefine","Blog":"https://ohevan.com","Friends":"/friends"}}},"search":{"enable":false,"preload":true}},"page_templates":{"friends_column":2,"tags_style":"blur"},"home":{"sidebar":{"enable":true,"position":"left","first_item":"menu","announcement":null,"links":null},"article_date_format":"auto","categories":{"enable":true,"limit":3},"tags":{"enable":true,"limit":3}}};
    Global.language_ago = {"second":"%s 秒前","minute":"%s 分钟前","hour":"%s 小时前","day":"%s 天前","week":"%s 周前","month":"%s 个月前","year":"%s 年前"};
    Global.data_config = {"masonry":false};
  </script>
    
    <!--- Fontawesome Part-->
    
<link rel="stylesheet" href="/fontawesome/fontawesome.min.css">

    
<link rel="stylesheet" href="/fontawesome/brands.min.css">

    
<link rel="stylesheet" href="/fontawesome/solid.min.css">

    
<link rel="stylesheet" href="/fontawesome/regular.min.css">

    
    
    
    
<meta name="generator" content="Hexo 6.3.0"></head>


<body>
<div class="progress-bar-container">
    

    
        <span class="pjax-progress-bar"></span>
        <span class="pjax-progress-icon">
            <i class="fa-solid fa-circle-notch fa-spin"></i>
        </span>
    
</div>


<main class="page-container">

    

    <div class="main-content-container">

        <div class="main-content-header">
            <header class="navbar-container">
    
    <div class="navbar-content">
        <div class="left">
            
            <a class="logo-title" href="/">
                
                Weekend&#39;s Blog
                
            </a>
        </div>

        <div class="right">
            <!-- PC -->
            <div class="desktop">
                <ul class="navbar-list">
                    
                        
                            <li class="navbar-item">
                                <!-- Menu -->
                                <a class="" 
                                    href="/"  >
                                    
                                        
                                            <i class="fa-regular fa-house"></i>
                                        
                                        首页
                                    
                                </a>
                                <!-- Submenu -->
                                
                            </li>
                    
                        
                            <li class="navbar-item">
                                <!-- Menu -->
                                <a class="" 
                                    href="/archives"  >
                                    
                                        
                                            <i class="fa-regular fa-archive"></i>
                                        
                                        归档
                                    
                                </a>
                                <!-- Submenu -->
                                
                            </li>
                    
                        
                            <li class="navbar-item">
                                <!-- Menu -->
                                <a class="" 
                                    target="_blank" rel="noopener" href="https://status.evanluo.top/"  >
                                    
                                        
                                            <i class="fa-regular fa-chart-bar"></i>
                                        
                                        状态
                                    
                                </a>
                                <!-- Submenu -->
                                
                            </li>
                    
                        
                            <li class="navbar-item">
                                <!-- Menu -->
                                <a class="has-dropdown" 
                                    href="#" onClick="return false;">
                                    
                                        
                                            <i class="fa-regular fa-user"></i>
                                        
                                        关于&nbsp;<i class="fa-solid fa-chevron-down"></i>
                                    
                                </a>
                                <!-- Submenu -->
                                
                                    <ul class="sub-menu">
                                    
                                        <li>
                                        <a href="/about">ME
                                        </a>
                                        </li>
                                    
                                        <li>
                                        <a target="_blank" rel="noopener" href="https://github.com/EvanNotFound/hexo-theme-redefine">GITHUB
                                        </a>
                                        </li>
                                    
                                        <li>
                                        <a target="_blank" rel="noopener" href="https://ohevan.com">BLOG
                                        </a>
                                        </li>
                                    
                                        <li>
                                        <a href="/friends">友情链接
                                        </a>
                                        </li>
                                    
                                    </ul>
                                
                            </li>
                    
                    
                </ul>
            </div>
            <!-- Mobile -->
            <div class="mobile">
                
                <div class="icon-item navbar-bar">
                    <div class="navbar-bar-middle"></div>
                </div>
            </div>
        </div>
    </div>

    <!-- Mobile drawer -->
    <div class="navbar-drawer">
        <ul class="drawer-navbar-list">
            
                
                    <li class="drawer-navbar-item flex-center">
                        <a class="" 
                        href="/"  >
                             
                                
                                    <i class="fa-regular fa-house"></i>
                                
                                首页
                            
                        </a>
                    </li>
                    <!-- Submenu -->
                    
            
                
                    <li class="drawer-navbar-item flex-center">
                        <a class="" 
                        href="/archives"  >
                             
                                
                                    <i class="fa-regular fa-archive"></i>
                                
                                归档
                            
                        </a>
                    </li>
                    <!-- Submenu -->
                    
            
                
                    <li class="drawer-navbar-item flex-center">
                        <a class="" 
                        target="_blank" rel="noopener" href="https://status.evanluo.top/"  >
                             
                                
                                    <i class="fa-regular fa-chart-bar"></i>
                                
                                状态
                            
                        </a>
                    </li>
                    <!-- Submenu -->
                    
            
                
                    <li class="drawer-navbar-item flex-center">
                        <a class="has-dropdown" 
                        href="#" onClick="return false;">
                            
                                
                                    <i class="fa-regular fa-user"></i>
                                
                                关于&nbsp;<i class="fa-solid fa-chevron-down"></i>
                            
                        </a>
                    </li>
                    <!-- Submenu -->
                              
                        
                            <li class="dropdown-item flex-center">
                                <a class="dropdown-item" href="/about">ME</a>
                            </li>
                        
                            <li class="dropdown-item flex-center">
                                <a class="dropdown-item" target="_blank" rel="noopener" href="https://github.com/EvanNotFound/hexo-theme-redefine">GITHUB</a>
                            </li>
                        
                            <li class="dropdown-item flex-center">
                                <a class="dropdown-item" target="_blank" rel="noopener" href="https://ohevan.com">BLOG</a>
                            </li>
                        
                            <li class="dropdown-item flex-center">
                                <a class="dropdown-item" href="/friends">友情链接</a>
                            </li>
                        
                    
            

        </ul>
    </div>

    <div class="window-mask"></div>

</header>


        </div>

        <div class="main-content-body">

            

            <div class="main-content">

                
                    <div class="fade-in-down-animation">
    <div class="post-page-container">
        <div class="article-content-container">

            
            
                <div class="article-title">
                    <h1 class="article-title-regular">基于Gitee/Github与hexo搭建博客</h1>
                </div>
            
                
            

            
                <div class="article-header">
                    <div class="avatar">
                        <img src="/images/user.svg">
                    </div>
                    <div class="info">
                        <div class="author">
                            <span class="name">Saturday_to_Monday</span>
                            
                                <span class="author-label">Lv1</span>
                            
                        </div>
                        <div class="meta-info">
                            <div class="article-meta-info">
    <span class="article-date article-meta-item">
        <i class="fa-regular fa-pen-fancy"></i>&nbsp;
        <span class="desktop">2023-06-08 20:27:28</span>
        <span class="mobile">2023-06-08 20:27</span>
        <span class="hover-info">创建</span>
    </span>
    
        <span class="article-date article-meta-item">
            <i class="fa-regular fa-wrench"></i>&nbsp;
            <span class="desktop">2023-06-08 20:18:06</span>
            <span class="mobile">2023-06-08 20:18</span>
            <span class="hover-info">更新</span>
        </span>
    

    
    
        <span class="article-tags article-meta-item">
            <i class="fa-regular fa-tags"></i>&nbsp;
            <ul>
                
                    <li>
                        <a href="/tags/hexo/">hexo</a>&nbsp;
                    </li>
                
            </ul>
        </span>
    

    
    
    
    
        <span class="article-pv article-meta-item">
            <i class="fa-regular fa-eye"></i>&nbsp;<span id="busuanzi_value_page_pv"></span>
        </span>
    
</div>

                        </div>
                    </div>
                </div>
            

            <div class="article-content markdown-body">
                <p>First Blog:Welcom to Weekend’s Personal Blog!记录了搭建本博客过程以及遇到的问题</p>
<h2 id="预备工作："><a href="#预备工作：" class="headerlink" title="预备工作："></a>预备工作：</h2><ol>
<li>安装git</li>
<li>安装node.js</li>
<li>安装hexo</li>
<li>创建Gitee仓库&#x2F;&#x2F;保证仓库名和用户名一致<ul>
<li>或者创建Gihub仓库（response）&#x2F;&#x2F;仓库名必须为 username.github.io</li>
</ul>
</li>
<li>查看本机ssh公钥，生成公钥<ul>
<li><a class="link"   target="_blank" rel="noopener" href="https://www.runoob.com/w3cnote/view-ssh-public-key.html" >查看本机 ssh 公钥，生成公钥 | 菜鸟教程 (runoob.com) <i class="fa-regular fa-arrow-up-right-from-square fa-sm"></i></a></li>
</ul>
</li>
</ol>
<ul>
<li><p>易出现的问题：</p>
<ul>
<li>报错not permitted<blockquote>
<p>解决：</p>
<ul>
<li>c盘打开该文件：切换文件夹所在的位置</li>
</ul>
 <div class="highlight-container" data-rel="Bash"><figure class="iseeu highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /d/myblog   </span><br><span class="line">//gitbush 内输入，d:磁盘名称，myblog:文件夹名称</span><br></pre></td></tr></table></figure></div>
</blockquote>
</li>
<li>安装出现跨域问题（字体图标加载失败）</li>
</ul>
<blockquote>
<ul>
<li>暂时未解决</li>
</ul>
</blockquote>
<ul>
<li>上传后未更新</li>
</ul>
<blockquote>
<ul>
<li>ctrl+F5强制更新</li>
<li>上传到gitee后必须点更新！！！</li>
</ul>
</blockquote>
</li>
</ul>
<h2 id="安装步骤："><a href="#安装步骤：" class="headerlink" title="安装步骤："></a>安装步骤：</h2><h3 id="步骤一：静态部署"><a href="#步骤一：静态部署" class="headerlink" title="步骤一：静态部署"></a>步骤一：静态部署</h3><ul>
<li><p>静态部署</p>
  <div class="highlight-container" data-rel="Bash"><figure class="iseeu highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">- node -v</span><br><span class="line">- git version</span><br><span class="line">- npm install -g hexo-cli//安装命令</span><br></pre></td></tr></table></figure></div>
</li>
<li><p>此时在d盘</p>
  <div class="highlight-container" data-rel="Bash"><figure class="iseeu highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">- hexo init myblog//在d位置//将 hexo文件引入自己创建的位置 会直接生成myblog文件夹</span><br><span class="line">- <span class="built_in">cd</span> myblog //进入刚刚创建的文件夹//注意:<span class="built_in">cd</span> 与安装文件夹之间有空格</span><br><span class="line">- npm install//再安装一次没有完全安装的文件（不一定必须）</span><br><span class="line">- hexo g//静态部署网站</span><br><span class="line">- <span class="built_in">dir</span> //多了一个public/查看目录下配置的文件</span><br><span class="line">- hexo s//查看搭建的blog</span><br></pre></td></tr></table></figure></div>
</li>
<li><p>此时blog的静态页面输入<a href="http://localhost.4000/已经可以访问">http://localhost.4000/已经可以访问</a></p>
</li>
<li><p>初步部署完成：</p>
</li>
</ul>
<h3 id="步骤二：发布到码云"><a href="#步骤二：发布到码云" class="headerlink" title="步骤二：发布到码云"></a>步骤二：发布到码云</h3><ul>
<li><p>发布到码云</p>
  <div class="highlight-container" data-rel="Bash"><figure class="iseeu highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-deployer-git --save//在myblog文件夹</span><br></pre></td></tr></table></figure></div>
</li>
<li><p>修改项目配置文件：</p>
<ul>
<li>type: git</li>
<li>repo: ssh链接&#x2F;&#x2F;比较方便</li>
<li>branch: master</li>
</ul>
</li>
<li><p>hexo d&#x2F;&#x2F;项目部署到gitee远程仓库（居然没有修改root）</p>
<ul>
<li>可能是和搭建的blog仓库名称和用户名保持一致的原因</li>
</ul>
</li>
</ul>
<h3 id="步骤三：更换hexo主题"><a href="#步骤三：更换hexo主题" class="headerlink" title="步骤三：更换hexo主题"></a>步骤三：更换hexo主题</h3><ul>
<li><p>更换hexo的主题：</p>
</li>
<li><p>yilia为例子；</p>
  <div class="highlight-container" data-rel="Bash"><figure class="iseeu highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git <span class="built_in">clone</span> https://github.com/litten/hexo-theme-yilia.git themes/yilia</span><br></pre></td></tr></table></figure></div>
</li>
<li><p>后面这段代码意思，打开themes&#x2F;并将克隆的文件夹名称修改为yilia 后放置进入&#x2F;&#x2F;链接是在github仓库获取的</p>
</li>
<li><p>修改配置文件</p>
<ul>
<li>themes 换为yilia(保持与文件夹同名)</li>
</ul>
  <div class="highlight-container" data-rel="Bash"><figure class="iseeu highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">- hexo clean //清除原本的public文件夹，</span><br><span class="line">- hexo g//安置新格式文件夹</span><br><span class="line">- hexo s//预览一下//成功ctrl+c退出后就无法预览了（至少redefine是这样）</span><br><span class="line">- hexo d//上传部署</span><br></pre></td></tr></table></figure></div></li>
</ul>
<h3 id="ended"><a href="#ended" class="headerlink" title="ended"></a>ended</h3><h2 id="个性化："><a href="#个性化：" class="headerlink" title="个性化："></a>个性化：</h2><ol>
<li><p>创建_config.redefine.yml&#x2F;&#x2F;主题配置文件  </p>
<ul>
<li>复制相应的代码</li>
</ul>
</li>
<li><p>新建的文件夹修改title&#x2F;author</p>
</li>
<li><p>修改图片如icon&#x2F;（原作者使用svg格式）:</p>
<ol>
<li>图片修改一：外链（此处ficon图标使用的掘金的外链转换）</li>
<li>图片修改二：插入图片的格式（路径在hexo根目录&#x2F;source&#x2F;images(自己新建的文件夹)）</li>
<li><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="C:\Users\木头同学\AppData\Roaming\Typora\typora-user-images\image-20230608201721992.png"
                      alt="image-20230608201721992"
                ></li>
<li><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/a3f57928b97b44a5bc4f0cf2dc144a08~tplv-k3u1fbpfcp-watermark.image"
                      alt="image.png"
                ></li>
</ol>
</li>
<li><p>配置文件：</p>
<ul>
<li><p>主题：Hexo 根目录文件夹下_config.redefine.yml _</p>
<p>or</p>
<p> &#x2F;&#x2F;themes&#x2F;redefine&#x2F;_config.yml</p>
<p>or</p>
<p>&#x2F;node_modules&#x2F;hexo-theme-redefine&#x2F;_config.yml</p>
</li>
<li><p>站点：Hexo 根目录 _config.yml</p>
</li>
</ul>
</li>
<li></li>
</ol>

            </div>

            
                <div class="post-copyright-info">
                    <div class="article-copyright-info-container">
    <ul>
        <li><strong>标题:</strong> 基于Gitee/Github与hexo搭建博客</li>
        <li><strong>作者:</strong> Saturday_to_Monday</li>
        <li><strong>创建于:</strong> 2023-06-08 20:27:28</li>
        
            <li>
                <strong>更新于:</strong> 2023-06-08 20:18:06
            </li>
        
        <li>
            <strong>链接:</strong> to-saturday.top/2023/06/08/基于Gitee与hexo搭建博客/
        </li>
        <li>
            <strong>版权声明:</strong> 本文章采用 <a class="license" target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">CC BY-NC-SA 4.0</a> 进行许可。
        </li>
    </ul>
</div>

                </div>
            

            
                <ul class="post-tags-box">
                    
                        <li class="tag-item">
                            <a href="/tags/hexo/">#hexo</a>&nbsp;
                        </li>
                    
                </ul>
            

            

            
                <div class="article-nav">
                    
                    
                        <div class="article-next">
                            <a class="next"
                            rel="next"
                            href="/2023/06/08/%E9%97%AD%E5%8C%85%E7%9A%84%E4%BA%A7%E7%94%9F%E5%8F%8A%E5%BA%94%E7%94%A8/"
                            >
                                <span class="title flex-center">
                                    <span class="post-nav-title-item">闭包的产生及应用</span>
                                    <span class="post-nav-item">下一篇</span>
                                </span>
                                <span class="right arrow-icon flex-center">
                                    <i class="fa-solid fa-chevron-right"></i>
                                </span>
                            </a>
                        </div>
                    
                </div>
            


            
                <div class="comment-container">
                    <div class="comments-container">
    <div id="comment-anchor"></div>
    <div class="comment-area-title">
        <i class="fa-solid fa-comments"></i>&nbsp;评论
    </div>
    

        
            
 
    <div id="waline"></div>
    <script type="module"  data-pjax>
        import { init } from 'https://evan.beee.top/js/waline.mjs';

        function loadWaline() {
            init({
                el: '#waline',
                serverURL: 'https://example.example.com',
                lang: 'zh-CN',
                dark: 'body[class~="dark-mode"]',
                requiredMeta: ['nick','mail'], // cannot customize by theme config, change it yourself
            });
        }

        if ('true') {
            const loadWalineTimeout = setTimeout(() => {
                loadWaline();
                clearTimeout(loadWalineTimeout);
            }, 1000);
        } else {
            window.addEventListener('DOMContentLoaded', loadWaline);
        }
        
    </script>



        
    
</div>

                </div>
            
        </div>

        
            <div class="toc-content-container">
                <div class="post-toc-wrap">
    <div class="post-toc">
        <div class="toc-title">此页目录</div>
        <div class="page-title">基于Gitee/Github与hexo搭建博客</div>
        <ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E9%A2%84%E5%A4%87%E5%B7%A5%E4%BD%9C%EF%BC%9A"><span class="nav-text">预备工作：</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E6%AD%A5%E9%AA%A4%EF%BC%9A"><span class="nav-text">安装步骤：</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%AD%A5%E9%AA%A4%E4%B8%80%EF%BC%9A%E9%9D%99%E6%80%81%E9%83%A8%E7%BD%B2"><span class="nav-text">步骤一：静态部署</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%AD%A5%E9%AA%A4%E4%BA%8C%EF%BC%9A%E5%8F%91%E5%B8%83%E5%88%B0%E7%A0%81%E4%BA%91"><span class="nav-text">步骤二：发布到码云</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%AD%A5%E9%AA%A4%E4%B8%89%EF%BC%9A%E6%9B%B4%E6%8D%A2hexo%E4%B8%BB%E9%A2%98"><span class="nav-text">步骤三：更换hexo主题</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#ended"><span class="nav-text">ended</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%B8%AA%E6%80%A7%E5%8C%96%EF%BC%9A"><span class="nav-text">个性化：</span></a></li></ol>

    </div>
</div>
            </div>
        
    </div>
</div>


                

            </div>
            
            

        </div>

        <div class="main-content-footer">
            <footer class="footer">
    <div class="info-container">
        <div class="copyright-info">
            &copy;
            
              <span>2022</span>
              -
            
            2023&nbsp;&nbsp;<i class="fa-solid fa-heart fa-beat" style="--fa-animation-duration: 0.5s; color: #f54545"></i>&nbsp;&nbsp;<a href="/">Saturday_to_Monday</a>
        </div>
        
            <script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
            <div class="website-count info-item">
                
                    <span id="busuanzi_container_site_uv" class="busuanzi_container_site_uv">
                        访问人数&nbsp;<span id="busuanzi_value_site_uv" class="busuanzi_value_site_uv"></span>
                    </span>
                
                
                    <span id="busuanzi_container_site_pv" class="busuanzi_container_site_pv">
                        总访问量&nbsp;<span id="busuanzi_value_site_pv" class="busuanzi_value_site_pv"></span>
                    </span>
                
            </div>
        
        <div class="theme-info info-item">
            <span class="powered-by-container">由 <?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg version="1.1" id="圖層_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1rem" height="1rem" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve"><path fill="#0E83CD" d="M256.4,25.8l-200,115.5L56,371.5l199.6,114.7l200-115.5l0.4-230.2L256.4,25.8z M349,354.6l-18.4,10.7l-18.6-11V275H200v79.6l-18.4,10.7l-18.6-11v-197l18.5-10.6l18.5,10.8V237h112v-79.6l18.5-10.6l18.5,10.8V354.6z"/></svg><a target="_blank" href="https://hexo.io">Hexo</a> 驱动</span>
                <br>
            <span class="theme-version-container">主题&nbsp;<a class="theme-version" target="_blank" href="https://github.com/EvanNotFound/hexo-theme-redefine">Redefine v2.1.5</a>
        </div>
        
        
        
            <div id="start_div" style="display:none">
                2022/8/17 11:45:14
            </div>
            <div>
                博客已运行 <span class="odometer" id="runtime_days" ></span> 天 <span class="odometer" id="runtime_hours"></span> 小时 <span class="odometer" id="runtime_minutes"></span> 分钟 <span class="odometer" id="runtime_seconds"></span> 秒
            </div>
        
        
        
            <script async data-pjax>
                try {
                    function odometer_init() {
                    const elements = document.querySelectorAll('.odometer');
                    elements.forEach(el => {
                        new Odometer({
                            el,
                            format: '( ddd).dd',
                            duration: 200
                        });
                    });
                    }
                    odometer_init();
                } catch (error) {}
            </script>
        
        
        
    </div>  
</footer>
        </div>
    </div>

    
        <div class="post-tools">
            <div class="post-tools-container">
    <ul class="article-tools-list">
        <!-- TOC aside toggle -->
        
            <li class="right-bottom-tools page-aside-toggle">
                <i class="fa-regular fa-outdent"></i>
            </li>
        

        <!-- go comment -->
        
            <li class="go-comment">
                <i class="fa-regular fa-comments"></i>
            </li>
        
    </ul>
</div>

        </div>
    

    <div class="right-side-tools-container">
        <div class="side-tools-container">
    <ul class="hidden-tools-list">
        <li class="right-bottom-tools tool-font-adjust-plus flex-center">
            <i class="fa-regular fa-magnifying-glass-plus"></i>
        </li>

        <li class="right-bottom-tools tool-font-adjust-minus flex-center">
            <i class="fa-regular fa-magnifying-glass-minus"></i>
        </li>

        <li class="right-bottom-tools tool-expand-width flex-center">
            <i class="fa-regular fa-expand"></i>
        </li>

        <li class="right-bottom-tools tool-dark-light-toggle flex-center">
            <i class="fa-regular fa-moon"></i>
        </li>

        <!-- rss -->
        

        

        <li class="right-bottom-tools tool-scroll-to-bottom flex-center">
            <i class="fa-regular fa-arrow-down"></i>
        </li>
    </ul>

    <ul class="visible-tools-list">
        <li class="right-bottom-tools toggle-tools-list flex-center">
            <i class="fa-regular fa-cog fa-spin"></i>
        </li>
        
            <li class="right-bottom-tools tool-scroll-to-top flex-center">
                <i class="arrow-up fas fa-arrow-up"></i>
                <span class="percent"></span>
            </li>
        
        
    </ul>
</div>

    </div>

    <div class="image-viewer-container">
    <img src="">
</div>


    


</main>




<script src="/js/utils.js"></script>

<script src="/js/main.js"></script>

<script src="/js/layouts/navbarShrink.js"></script>

<script src="/js/tools/scrollTopBottom.js"></script>

<script src="/js/tools/lightDarkSwitch.js"></script>





    
<script src="/js/tools/codeBlock.js"></script>




    
<script src="/js/layouts/lazyload.js"></script>




    
<script src="/js/tools/runtime.js"></script>

    
<script src="/js/libs/odometer.min.js"></script>

    
<link rel="stylesheet" href="/assets/odometer-theme-minimal.css">




  
<script src="/js/libs/Typed.min.js"></script>

  
<script src="/js/plugins/typed.js"></script>







<div class="post-scripts pjax">
    
        
<script src="/js/tools/tocToggle.js"></script>

<script src="/js/libs/anime.min.js"></script>

<script src="/js/layouts/toc.js"></script>

<script src="/js/plugins/tabs.js"></script>

    
</div>


    
<script src="/js/libs/pjax.min.js"></script>

<script>
    window.addEventListener('DOMContentLoaded', () => {
        window.pjax = new Pjax({
            selectors: [
                'head title',
                '.page-container',
                '.pjax',
            ],
            history: true,
            debug: false,
            cacheBust: false,
            timeout: 0,
            analytics: false,
            currentUrlFullReload: false,
            scrollRestoration: false,
            // scrollTo: true,
        });

        document.addEventListener('pjax:send', () => {
            Global.utils.pjaxProgressBarStart();
        });

        document.addEventListener('pjax:complete', () => {
            Global.utils.pjaxProgressBarEnd();
            window.pjax.executeScripts(document.querySelectorAll('script[data-pjax], .pjax script'));
            Global.refresh();
        });
    });
</script>




</body>
</html>
